package com.zhangtai.modules.service.employee;


import com.zhangtai.modules.entity.employee.EmployeeEducationEntity;
import com.zhangtai.utils.PageResult;
import com.zhangtai.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-07-13 22:21:32
 */
@Api(tags = "产品接口")
public interface EmployeeEducationService {

    @GetMapping("/findEmployeeEducationList")
    @ApiOperation(value = "分页查询")
    PageResult queryPage(@RequestParam(value = "oid", required = false) String oid,
                         @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                         @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize);

    @GetMapping("/infoEmployeeEducation")
    @ApiOperation(value = "根据id查找")
    EmployeeEducationEntity getByIdE(@RequestParam("id") Long id);

    @PostMapping("/saveEmployeeEducation")
    @ApiOperation(value = "保存")
    R saveE(@RequestBody EmployeeEducationEntity entity);

    @PostMapping("/updateEmployeeEducation")
    @ApiOperation(value = "修改")
    R updateByIdE(@RequestBody EmployeeEducationEntity entity);

    @GetMapping("/deleteOneEmployeeEducation")
    @ApiOperation(value = "根据ID删除")
    R removeOneById(@RequestParam("id") Long id);

    @PostMapping("/deleteEmployeeEducations")
    @ApiOperation(value = "根据ID集合删除")
    R removeByIdsE(@RequestBody List<Long> ids);

    @GetMapping("/infoEmployeeEducationListByOid")
    List<EmployeeEducationEntity> findEmployeeEducationListByOid(@RequestParam("oid") Long oid);
}

